﻿<Window x:Class="MiniMusicPlayer.Windows.WindowPlaylist"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Playlist" Height="300" Width="300"
        AllowsTransparency="True"
        WindowStyle="None"
        ResizeMode="CanResizeWithGrip"
        Topmost="True"
        Icon="../Images/Window/Music.png"
        >
    <Window.Resources>
        
    </Window.Resources>
    <Grid Background="#FF0099f5">
        <Grid Margin="1" Background="White">
            <Grid.RowDefinitions>
                <RowDefinition Height="30" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Grid Grid.Row="0" Background="#FF0099f5" MouseLeftButtonDown="Move">
                <Label Content="Playlist" Foreground="White" FontSize="14" FontWeight="Bold" />
                <Button x:Name="ButtonClose" Style="{StaticResource ButtonStyleSquare}" Width="15" Height="15" Background="Transparent" Margin="0,8,5,8" Click="CloseClicked" HorizontalAlignment="Right">
                    <Image>
                        <Image.Resources>
                            <Style TargetType="{x:Type Image}">
                                <Setter Property="Source" Value="../Images/Window/CloseWhite_32.png" />
                                <Style.Triggers>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Source" Value="../Images/Window/CloseGray_32.png"/>
                                    </Trigger>
                                </Style.Triggers>
                            </Style>
                        </Image.Resources>
                    </Image>
                </Button>
            </Grid>

            <DataGrid Grid.Row="1" x:Name="DataGridPlaylist" Visibility="Visible" IsReadOnly="True"
                  BorderThickness="2" BorderBrush="Gray" ItemsSource="{Binding}">
                <DataGrid.Resources>
                    <Style TargetType="DataGridRow">
                        <EventSetter Event="PreviewMouseDoubleClick" Handler="DataGridRowDoubleClicked" />
                        <EventSetter Event="PreviewKeyDown" Handler="DataGridRowKeyDown" />
                    </Style>
                </DataGrid.Resources>
            </DataGrid>
            <Grid Grid.Row="2" Background="#FF0099f5">
                <Label x:Name="LabelActualSong" Content="Playing: Nothing" Foreground="White" />
            </Grid>
        </Grid>
    </Grid>
</Window>
